home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 June
/
PCWorld_2004-06_cd.bin
/
software
/
vyzkuste
/
koolmoves
/
kmsetup.exe
/
{app}
/
Motion Scripts
/
Ticker Tape
/
effect2.txt
Wrap
Text File
|
2004-03-19
|
1KB
|
54 lines
// main_init function
main_init = function(mc){
box = function(mc,tl_x, tl_y, br_x, br_y, cf, ca ){
mc.lineStyle();
mc.beginFill(cf,ca);
mc.moveTo (tl_x,tl_y);
mc.lineTo (br_x,tl_y);
mc.lineTo (br_x,br_y);
mc.lineTo (tl_x,br_y);
mc.endFill();
}
subs_done = true;
createEmptyMovieClip("msk",6);
createEmptyMovieClip("tb",4);
if (tickerbox_alpha<2) tb._visible = false;
mc.setmask(msk);
b = mc.getBounds(mc);
p = $padding / 2;
if (ltorlang){
box(msk,b.xMin+p,b.yMin,b.xMin+p+tickerbox_width,b.yMax,0,0);
box(tb, b.xMin+p-tickerbox_padding,b.yMin+p-tickerbox_padding,b.xMin+p+tickerbox_width+tickerbox_padding,b.yMax-p+tickerbox_padding,tickerbox_color,tickerbox_alpha);
mc._x = tickerbox_width;
} else {
box(msk,b.xMax-p-tickerbox_width,b.yMin,b.xMax-p,b.yMax,0,0);
box(tb, b.xMax-p-tickerbox_width-tickerbox_padding,b.yMin+p-tickerbox_padding,b.xMax-p+tickerbox_padding,b.yMax-p+tickerbox_padding,tickerbox_color,tickerbox_alpha);
mc._x = -tickerbox_width;
}
}
// main_effect function
main_effect = function(mc,frame){
if (ltorlang){
mc._x-=cycle_speed;
if (mc._x < -(mc._width-$padding)) end_effect = true;
} else {
mc._x+=cycle_speed;
if (mc._x > (mc._width-$padding)) end_effect = true;
}
}
// sub_init function
sub_init = function(mc){
}
// sub_effect function
sub_effect = function(mc,frame){
}